const textreducer = (state = [], action) => {
    switch (action.type) {
        case 'GET_TEXT':
            console.log(action.textlist)
            return action.textlist;
        case 'DEL_COMMUNITY':
            let arr
            arr = [...state].filter((item) => {
                return item.dynamic_id != action.index
            })
            return arr

        default:
            return state;
    }
}

export default textreducer;